<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "https://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.17"/>
<meta name="viewport" content="width=device-width, initial-scale=1"/>
<title>NumCpp: nc::Vec3 Class Reference</title>
<link href="tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="jquery.js"></script>
<script type="text/javascript" src="dynsections.js"></script>
<link href="navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="resize.js"></script>
<script type="text/javascript" src="navtreedata.js"></script>
<script type="text/javascript" src="navtree.js"></script>
<link href="search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="search/searchdata.js"></script>
<script type="text/javascript" src="search/search.js"></script>
<link href="doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectlogo"><img alt="Logo" src="NumCppLogoDoxygen.png"/></td>
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">NumCpp
   &#160;<span id="projectnumber">2.1.0</span>
   </div>
   <div id="projectbrief">A C++ implementation of the Python Numpy library</div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.17 -->
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
var searchBox = new SearchBox("searchBox", "search",false,'Search');
/* @license-end */
</script>
<script type="text/javascript" src="menudata.js"></script>
<script type="text/javascript" src="menu.js"></script>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(function() {
  initMenu('',true,false,'search.php','Search');
  $(document).ready(function() { init_search(); });
});
/* @license-end */</script>
<div id="main-nav"></div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
/* @license magnet:?xt=urn:btih:cf05388f2679ee054f2beb29a391d25f4e673ac3&amp;dn=gpl-2.0.txt GPL-v2 */
$(document).ready(function(){initNavTree('classnc_1_1_vec3.html',''); initResizable(); });
/* @license-end */
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="#pub-static-methods">Static Public Member Functions</a> &#124;
<a href="#pub-attribs">Data Fields</a>  </div>
  <div class="headertitle">
<div class="title">nc::Vec3 Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p>Holds a 3D vector.  
 <a href="classnc_1_1_vec3.html#details">More...</a></p>

<p><code>#include &lt;<a class="el" href="_vec3_8hpp_source.html">Vec3.hpp</a>&gt;</code></p>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:adb18c9ba29affb8b712bb22a83e38e09"><td class="memItemLeft" align="right" valign="top">constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#adb18c9ba29affb8b712bb22a83e38e09">Vec3</a> ()=default</td></tr>
<tr class="separator:adb18c9ba29affb8b712bb22a83e38e09"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4668419f4c870900466d4aa198247767"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a4668419f4c870900466d4aa198247767">Vec3</a> (const <a class="el" href="classnc_1_1_nd_array.html">NdArray</a>&lt; double &gt; &amp;ndArray)</td></tr>
<tr class="separator:a4668419f4c870900466d4aa198247767"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4056d1e369726710d6f1049b277486dd"><td class="memItemLeft" align="right" valign="top">&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a4056d1e369726710d6f1049b277486dd">Vec3</a> (const std::initializer_list&lt; double &gt; &amp;inList)</td></tr>
<tr class="separator:a4056d1e369726710d6f1049b277486dd"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6b0bc18cc9594a7d81361c518d543130"><td class="memItemLeft" align="right" valign="top">constexpr&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a6b0bc18cc9594a7d81361c518d543130">Vec3</a> (double inX, double inY, double inZ) noexcept</td></tr>
<tr class="separator:a6b0bc18cc9594a7d81361c518d543130"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a523ca42cbdd088851cc5a299da988cee"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a523ca42cbdd088851cc5a299da988cee">angle</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;otherVec) const noexcept</td></tr>
<tr class="separator:a523ca42cbdd088851cc5a299da988cee"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4f3cfcbd67a402820cc8e0576dccd2e4"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a4f3cfcbd67a402820cc8e0576dccd2e4">clampMagnitude</a> (double maxLength) const noexcept</td></tr>
<tr class="separator:a4f3cfcbd67a402820cc8e0576dccd2e4"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8173f6e61e9a63beae3092fd8dc4378"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#af8173f6e61e9a63beae3092fd8dc4378">cross</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;otherVec) const noexcept</td></tr>
<tr class="separator:af8173f6e61e9a63beae3092fd8dc4378"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a301f3edcb8cb17e7e3e5dbdd5255bdd2"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a301f3edcb8cb17e7e3e5dbdd5255bdd2">distance</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;otherVec) const noexcept</td></tr>
<tr class="separator:a301f3edcb8cb17e7e3e5dbdd5255bdd2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac9f2bf549a4b800f140de060a0281a7e"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#ac9f2bf549a4b800f140de060a0281a7e">dot</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;otherVec) const noexcept</td></tr>
<tr class="separator:ac9f2bf549a4b800f140de060a0281a7e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ab4878c8a4ebcd94fd0baf93059b50ac6"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#ab4878c8a4ebcd94fd0baf93059b50ac6">lerp</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;otherVec, double t) const noexcept</td></tr>
<tr class="separator:ab4878c8a4ebcd94fd0baf93059b50ac6"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6c177e1f5c00584279a0527d3053dee8"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">norm</a> () const noexcept</td></tr>
<tr class="separator:a6c177e1f5c00584279a0527d3053dee8"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a6356b462b11a156b923a7c79b9747c25"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a6356b462b11a156b923a7c79b9747c25">normalize</a> () const noexcept</td></tr>
<tr class="separator:a6356b462b11a156b923a7c79b9747c25"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aad142760da8d2b3493462b4542e42673"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#aad142760da8d2b3493462b4542e42673">operator!=</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;rhs) const noexcept</td></tr>
<tr class="separator:aad142760da8d2b3493462b4542e42673"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a02ec360e4ebb7b4a6b629eedf8d24a2f"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a02ec360e4ebb7b4a6b629eedf8d24a2f">operator*=</a> (double scaler) noexcept</td></tr>
<tr class="separator:a02ec360e4ebb7b4a6b629eedf8d24a2f"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2b1c4e63a7233fb56e2f037807dffb68"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a2b1c4e63a7233fb56e2f037807dffb68">operator+=</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;rhs) noexcept</td></tr>
<tr class="separator:a2b1c4e63a7233fb56e2f037807dffb68"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:afef859d21f4332089843c5d337c1ce01"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#afef859d21f4332089843c5d337c1ce01">operator+=</a> (double scaler) noexcept</td></tr>
<tr class="separator:afef859d21f4332089843c5d337c1ce01"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a208820649ed763a5dcc9405c4aa481f2"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a208820649ed763a5dcc9405c4aa481f2">operator-=</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;rhs) noexcept</td></tr>
<tr class="separator:a208820649ed763a5dcc9405c4aa481f2"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a70251860269c7cb5becbe988a0b2c48e"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a70251860269c7cb5becbe988a0b2c48e">operator-=</a> (double scaler) noexcept</td></tr>
<tr class="separator:a70251860269c7cb5becbe988a0b2c48e"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a431b2ac6af51bf59d804adbe5c8a7700"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a431b2ac6af51bf59d804adbe5c8a7700">operator/=</a> (double scaler) noexcept</td></tr>
<tr class="separator:a431b2ac6af51bf59d804adbe5c8a7700"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a2cc63855706091881f765b63dcf52c44"><td class="memItemLeft" align="right" valign="top">bool&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a2cc63855706091881f765b63dcf52c44">operator==</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;rhs) const noexcept</td></tr>
<tr class="separator:a2cc63855706091881f765b63dcf52c44"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aaba2a76701fbf17582641cefeb513f1c"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#aaba2a76701fbf17582641cefeb513f1c">project</a> (const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;otherVec) const noexcept</td></tr>
<tr class="separator:aaba2a76701fbf17582641cefeb513f1c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a45dbcf0b972b41fc3bc78aac17288804"><td class="memItemLeft" align="right" valign="top"><a class="el" href="classnc_1_1_nd_array.html">NdArray</a>&lt; double &gt;&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a45dbcf0b972b41fc3bc78aac17288804">toNdArray</a> () const</td></tr>
<tr class="separator:a45dbcf0b972b41fc3bc78aac17288804"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a29fad7279d8da7f78805fee0c6d73408"><td class="memItemLeft" align="right" valign="top">std::string&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a29fad7279d8da7f78805fee0c6d73408">toString</a> () const</td></tr>
<tr class="separator:a29fad7279d8da7f78805fee0c6d73408"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-static-methods"></a>
Static Public Member Functions</h2></td></tr>
<tr class="memitem:a44e50b4b49011ec94548558600c0b17c"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a44e50b4b49011ec94548558600c0b17c">back</a> () noexcept</td></tr>
<tr class="separator:a44e50b4b49011ec94548558600c0b17c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a4ea0c82948117391c6c42a99e3093f91"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a4ea0c82948117391c6c42a99e3093f91">down</a> () noexcept</td></tr>
<tr class="separator:a4ea0c82948117391c6c42a99e3093f91"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:ac5a33c96c05a8c856b774c24f4a1965d"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#ac5a33c96c05a8c856b774c24f4a1965d">forward</a> () noexcept</td></tr>
<tr class="separator:ac5a33c96c05a8c856b774c24f4a1965d"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a7e6730d945972ecda1815c1d41f5074c"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a7e6730d945972ecda1815c1d41f5074c">left</a> () noexcept</td></tr>
<tr class="separator:a7e6730d945972ecda1815c1d41f5074c"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:af8862aed471260a45c7691c7c5c6b016"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#af8862aed471260a45c7691c7c5c6b016">right</a> () noexcept</td></tr>
<tr class="separator:af8862aed471260a45c7691c7c5c6b016"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:aafc14ccae575994733d664eb3f4a6e66"><td class="memItemLeft" align="right" valign="top">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a>&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#aafc14ccae575994733d664eb3f4a6e66">up</a> () noexcept</td></tr>
<tr class="separator:aafc14ccae575994733d664eb3f4a6e66"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table><table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-attribs"></a>
Data Fields</h2></td></tr>
<tr class="memitem:a7f71dd08d58a1327739de6041e3362bb"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a7f71dd08d58a1327739de6041e3362bb">x</a> { 0.0 }</td></tr>
<tr class="separator:a7f71dd08d58a1327739de6041e3362bb"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a969dd1c195f4c78fc3a93292391e29c1"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a969dd1c195f4c78fc3a93292391e29c1">y</a> { 0.0 }</td></tr>
<tr class="separator:a969dd1c195f4c78fc3a93292391e29c1"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a0896ee691f46ce0bd669b869fe6acb41"><td class="memItemLeft" align="right" valign="top">double&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="classnc_1_1_vec3.html#a0896ee691f46ce0bd669b869fe6acb41">z</a> { 0.0 }</td></tr>
<tr class="separator:a0896ee691f46ce0bd669b869fe6acb41"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock"><p>Holds a 3D vector. </p>
</div><h2 class="groupheader">Constructor &amp; Destructor Documentation</h2>
<a id="adb18c9ba29affb8b712bb22a83e38e09"></a>
<h2 class="memtitle"><span class="permalink"><a href="#adb18c9ba29affb8b712bb22a83e38e09">&#9670;&nbsp;</a></span>Vec3() <span class="overload">[1/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">constexpr nc::Vec3::Vec3 </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">constexpr</span><span class="mlabel">default</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Default Constructor </p>

</div>
</div>
<a id="a6b0bc18cc9594a7d81361c518d543130"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6b0bc18cc9594a7d81361c518d543130">&#9670;&nbsp;</a></span>Vec3() <span class="overload">[2/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">constexpr nc::Vec3::Vec3 </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>inX</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>inY</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>inZ</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inX</td><td>the x component </td></tr>
    <tr><td class="paramname">inY</td><td>the y component </td></tr>
    <tr><td class="paramname">inZ</td><td>the y component </td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4056d1e369726710d6f1049b277486dd"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4056d1e369726710d6f1049b277486dd">&#9670;&nbsp;</a></span>Vec3() <span class="overload">[3/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">nc::Vec3::Vec3 </td>
          <td>(</td>
          <td class="paramtype">const std::initializer_list&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>inList</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">inList</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<a id="a4668419f4c870900466d4aa198247767"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4668419f4c870900466d4aa198247767">&#9670;&nbsp;</a></span>Vec3() <span class="overload">[4/4]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">nc::Vec3::Vec3 </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_nd_array.html">NdArray</a>&lt; double &gt; &amp;&#160;</td>
          <td class="paramname"><em>ndArray</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Constructor</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">ndArray</td><td></td></tr>
  </table>
  </dd>
</dl>

</div>
</div>
<h2 class="groupheader">Member Function Documentation</h2>
<a id="a523ca42cbdd088851cc5a299da988cee"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a523ca42cbdd088851cc5a299da988cee">&#9670;&nbsp;</a></span>angle()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double nc::Vec3::angle </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>otherVec</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the angle between the two vectors</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherVec</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the angle in radians </dd></dl>

</div>
</div>
<a id="a44e50b4b49011ec94548558600c0b17c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a44e50b4b49011ec94548558600c0b17c">&#9670;&nbsp;</a></span>back()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::back </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the unit vector [0, 0, -1]</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a4f3cfcbd67a402820cc8e0576dccd2e4"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4f3cfcbd67a402820cc8e0576dccd2e4">&#9670;&nbsp;</a></span>clampMagnitude()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::clampMagnitude </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>maxLength</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns a copy of the vector with its magnitude clamped to maxLength</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">maxLength</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="af8173f6e61e9a63beae3092fd8dc4378"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8173f6e61e9a63beae3092fd8dc4378">&#9670;&nbsp;</a></span>cross()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::cross </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>otherVec</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the cross product of the two vectors</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherVec</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the dot product </dd></dl>

</div>
</div>
<a id="a301f3edcb8cb17e7e3e5dbdd5255bdd2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a301f3edcb8cb17e7e3e5dbdd5255bdd2">&#9670;&nbsp;</a></span>distance()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double nc::Vec3::distance </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>otherVec</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the distance between the two vectors</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherVec</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the distance (equivalent to (a - b).<a class="el" href="classnc_1_1_vec3.html#a6c177e1f5c00584279a0527d3053dee8">norm()</a> </dd></dl>

</div>
</div>
<a id="ac9f2bf549a4b800f140de060a0281a7e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac9f2bf549a4b800f140de060a0281a7e">&#9670;&nbsp;</a></span>dot()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double nc::Vec3::dot </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>otherVec</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the dot product of the two vectors</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherVec</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>the dot product </dd></dl>

</div>
</div>
<a id="a4ea0c82948117391c6c42a99e3093f91"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a4ea0c82948117391c6c42a99e3093f91">&#9670;&nbsp;</a></span>down()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::down </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the unit vector [0, -1, 0]</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="ac5a33c96c05a8c856b774c24f4a1965d"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ac5a33c96c05a8c856b774c24f4a1965d">&#9670;&nbsp;</a></span>forward()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::forward </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the unit vector [0, 0, 1]</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a7e6730d945972ecda1815c1d41f5074c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7e6730d945972ecda1815c1d41f5074c">&#9670;&nbsp;</a></span>left()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::left </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the unit vector [-1, 0, 0]</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="ab4878c8a4ebcd94fd0baf93059b50ac6"></a>
<h2 class="memtitle"><span class="permalink"><a href="#ab4878c8a4ebcd94fd0baf93059b50ac6">&#9670;&nbsp;</a></span>lerp()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::lerp </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>otherVec</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>t</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Linearly interpolates between two vectors</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherVec</td><td></td></tr>
    <tr><td class="paramname">t</td><td>the amount to interpolate by (clamped from [0, 1]); </td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a6c177e1f5c00584279a0527d3053dee8"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6c177e1f5c00584279a0527d3053dee8">&#9670;&nbsp;</a></span>norm()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">double nc::Vec3::norm </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the magnitude of the vector</p>
<dl class="section return"><dt>Returns</dt><dd>magnitude of the vector </dd></dl>

</div>
</div>
<a id="a6356b462b11a156b923a7c79b9747c25"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a6356b462b11a156b923a7c79b9747c25">&#9670;&nbsp;</a></span>normalize()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::normalize </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns a new normalized <a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a></p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="aad142760da8d2b3493462b4542e42673"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aad142760da8d2b3493462b4542e42673">&#9670;&nbsp;</a></span>operator!=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool nc::Vec3::operator!= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Not Equality operator</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bool </dd></dl>

</div>
</div>
<a id="a02ec360e4ebb7b4a6b629eedf8d24a2f"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a02ec360e4ebb7b4a6b629eedf8d24a2f">&#9670;&nbsp;</a></span>operator*=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&amp; nc::Vec3::operator*= </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scaler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Scalar mulitplication</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scaler</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a2b1c4e63a7233fb56e2f037807dffb68"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2b1c4e63a7233fb56e2f037807dffb68">&#9670;&nbsp;</a></span>operator+=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&amp; nc::Vec3::operator+= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Adds the two vectors</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="afef859d21f4332089843c5d337c1ce01"></a>
<h2 class="memtitle"><span class="permalink"><a href="#afef859d21f4332089843c5d337c1ce01">&#9670;&nbsp;</a></span>operator+=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&amp; nc::Vec3::operator+= </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scaler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Adds the scaler to the vector</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scaler</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a208820649ed763a5dcc9405c4aa481f2"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a208820649ed763a5dcc9405c4aa481f2">&#9670;&nbsp;</a></span>operator-=() <span class="overload">[1/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&amp; nc::Vec3::operator-= </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Subtracts the two vectors</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a70251860269c7cb5becbe988a0b2c48e"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a70251860269c7cb5becbe988a0b2c48e">&#9670;&nbsp;</a></span>operator-=() <span class="overload">[2/2]</span></h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&amp; nc::Vec3::operator-= </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scaler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Subtracts the scaler from the vector</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scaler</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a431b2ac6af51bf59d804adbe5c8a7700"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a431b2ac6af51bf59d804adbe5c8a7700">&#9670;&nbsp;</a></span>operator/=()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a>&amp; nc::Vec3::operator/= </td>
          <td>(</td>
          <td class="paramtype">double&#160;</td>
          <td class="paramname"><em>scaler</em></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Scalar division</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">scaler</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a2cc63855706091881f765b63dcf52c44"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a2cc63855706091881f765b63dcf52c44">&#9670;&nbsp;</a></span>operator==()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">bool nc::Vec3::operator== </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>rhs</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Equality operator</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">rhs</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd>bool </dd></dl>

</div>
</div>
<a id="aaba2a76701fbf17582641cefeb513f1c"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aaba2a76701fbf17582641cefeb513f1c">&#9670;&nbsp;</a></span>project()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::project </td>
          <td>(</td>
          <td class="paramtype">const <a class="el" href="classnc_1_1_vec3.html">Vec3</a> &amp;&#160;</td>
          <td class="paramname"><em>otherVec</em></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Projects the vector onto the input vector</p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramname">otherVec</td><td></td></tr>
  </table>
  </dd>
</dl>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="af8862aed471260a45c7691c7c5c6b016"></a>
<h2 class="memtitle"><span class="permalink"><a href="#af8862aed471260a45c7691c7c5c6b016">&#9670;&nbsp;</a></span>right()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::right </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the unit vector [1, 0, 0]</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<a id="a45dbcf0b972b41fc3bc78aac17288804"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a45dbcf0b972b41fc3bc78aac17288804">&#9670;&nbsp;</a></span>toNdArray()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname"><a class="el" href="classnc_1_1_nd_array.html">NdArray</a>&lt;double&gt; nc::Vec3::toNdArray </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the <a class="el" href="classnc_1_1_vec2.html" title="Holds a 2D vector.">Vec2</a> as an <a class="el" href="classnc_1_1_nd_array.html" title="Holds 1D and 2D arrays, the main work horse of the NumCpp library.">NdArray</a></p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_nd_array.html" title="Holds 1D and 2D arrays, the main work horse of the NumCpp library.">NdArray</a> </dd></dl>

</div>
</div>
<a id="a29fad7279d8da7f78805fee0c6d73408"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a29fad7279d8da7f78805fee0c6d73408">&#9670;&nbsp;</a></span>toString()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">std::string nc::Vec3::toString </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td> const</td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the <a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> as a string</p>
<dl class="section return"><dt>Returns</dt><dd>std::string </dd></dl>

</div>
</div>
<a id="aafc14ccae575994733d664eb3f4a6e66"></a>
<h2 class="memtitle"><span class="permalink"><a href="#aafc14ccae575994733d664eb3f4a6e66">&#9670;&nbsp;</a></span>up()</h2>

<div class="memitem">
<div class="memproto">
<table class="mlabels">
  <tr>
  <td class="mlabels-left">
      <table class="memname">
        <tr>
          <td class="memname">static constexpr <a class="el" href="classnc_1_1_vec3.html">Vec3</a> nc::Vec3::up </td>
          <td>(</td>
          <td class="paramname"></td><td>)</td>
          <td></td>
        </tr>
      </table>
  </td>
  <td class="mlabels-right">
<span class="mlabels"><span class="mlabel">inline</span><span class="mlabel">static</span><span class="mlabel">constexpr</span><span class="mlabel">noexcept</span></span>  </td>
  </tr>
</table>
</div><div class="memdoc">
<p>Returns the unit vector [0, 1, 0]</p>
<dl class="section return"><dt>Returns</dt><dd><a class="el" href="classnc_1_1_vec3.html" title="Holds a 3D vector.">Vec3</a> </dd></dl>

</div>
</div>
<h2 class="groupheader">Field Documentation</h2>
<a id="a7f71dd08d58a1327739de6041e3362bb"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a7f71dd08d58a1327739de6041e3362bb">&#9670;&nbsp;</a></span>x</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double nc::Vec3::x { 0.0 }</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a969dd1c195f4c78fc3a93292391e29c1"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a969dd1c195f4c78fc3a93292391e29c1">&#9670;&nbsp;</a></span>y</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double nc::Vec3::y { 0.0 }</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<a id="a0896ee691f46ce0bd669b869fe6acb41"></a>
<h2 class="memtitle"><span class="permalink"><a href="#a0896ee691f46ce0bd669b869fe6acb41">&#9670;&nbsp;</a></span>z</h2>

<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">double nc::Vec3::z { 0.0 }</td>
        </tr>
      </table>
</div><div class="memdoc">

</div>
</div>
<hr/>The documentation for this class was generated from the following file:<ul>
<li><a class="el" href="_vec3_8hpp_source.html">Vec3.hpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="namespacenc.html">nc</a></li><li class="navelem"><a class="el" href="classnc_1_1_vec3.html">Vec3</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="doxygen.png" alt="doxygen"/></a> 1.8.17 </li>
  </ul>
</div>
</body>
</html>
